//
//  UITableViewExtensions.m
//  MantuPlay
//
//  Created by Markus Sintonen on 30.8.2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "UITableViewExtensions.h"


@implementation UITableView (UITableViewExtensions)

-(BOOL)isFirstCellAtIndexPath:(NSIndexPath*)indexPath {
	if(indexPath.section == 0) {
		if(indexPath.row == 0) return YES;
	}
	return NO;
}
-(BOOL)isLastCellAtIndexPath:(NSIndexPath*)indexPath {
	if(indexPath.section == (unsigned int)([self numberOfSections]-1)) {
		if(indexPath.row == (unsigned int)([self numberOfRowsInSection:indexPath.section]-1)) return YES;
	}
	return NO;
}

@end
